package com.own.core.html.panel.dateField;

import java.lang.reflect.Field;


import org.apache.wicket.model.IModel;
 
import com.own.core.html.form.dateField.DateField;
import com.own.core.html.form.dateField.OwnDateField;
import com.own.core.html.form.textField.OwnTextField;
import com.own.core.html.form.textField.TextField;
import com.own.core.html.panel.OwnDynPanel;
import com.own.util.model.OwnCompoundPropertyModel;

public class OwnDateFieldPan extends OwnDynPanel {
	DateField dateField;

	public OwnDateFieldPan(IModel model, Field field, DateField dateField) {
		super(model, field);
		this.dateField = dateField;
		OwnDateField ownDateField = new OwnDateField("dateTextField",
				((OwnCompoundPropertyModel) model).bind(field.getName()),
				dateField );

		setFormComponent(ownDateField);
		draw();
	}

}
